import java.util.Scanner;
import java.util.Random;

public class main {

	/**
	 * @param args
	 */

	public static void main(String[] args) {
		Scanner input = new Scanner(System.in);
		boolean again = false;

		player player1 = new player("Gladiator");
		player1.setHealth(1000);
		player1.setStrength(85);
		player1.setDefense(200);
		player1.setGold(0);
		System.out.println(player1.getName());
		System.out.println(player1.getHealth());
		System.out.println("HP");
		System.out.println(player1.getStrength());
		System.out.println("STRENGTH");
		System.out.println(player1.getDefense());
		System.out.println("ARMOUR");
		System.out.println(player1.getGold());
		System.out.println("GOLD");
		System.out.println("Are you ready?");

		String answer1 = input.next();

		if (answer1.equalsIgnoreCase("yes"))
			;
		System.out.println("You are in GOLD QUEST ULTIMATE . ");
		System.out.println("You are here to try to get the most gold");
		System.out.println("You find a road, go left or right");
		String answer2 = input.next();

		// left side
		if (answer2.equalsIgnoreCase("left")) {
			player1.getDamage(25);
			System.out.println("You go through thorn bushes");
			System.out.println(player1.getHealth());
			System.out.println("HP     " + "TYP IN NEXT");
			String answer3 = input.next();

			if (answer3.equalsIgnoreCase("next")) {
				System.out
						.println("You continue on to find a abandoned caravan, will you loot it or leave it?");
				String choicecaravan = input.next();
				player1.setDefense(20);
				System.out.println(player1.getDefense());
				System.out.println("ARMOUR");

				if (choicecaravan.equalsIgnoreCase("loot")) {
					player1.addDefense(25);
					System.out
							.println("As you looted you found light armour and gold");
					System.out.println("TYP IN NEXT");
					BANDITS();

				}
				String dobnt = input.next();
				if (dobnt.equalsIgnoreCase("leave")) {

				}
			}
		}
		// right side
		else if (answer2.equalsIgnoreCase("right")) {
			System.out
					.println("You found a knight on the side of the road, he is severly hurt");
			System.out.println("You either kill him or you leave him to die ");
			String choiceknight = input.next();

			if (choiceknight.equalsIgnoreCase("kill")) {
				player1.setGold(25);
				System.out.println(player1.getGold());
				System.out.println("GOLD");
				System.out.println("You continue into the forest "
						+ "[TYP IN NEXT]");
				BANDITS();

			}
		}
	}

	public static void BANDITS() {
		Scanner input = new Scanner(System.in);
		String bandits = input.next();

		if (bandits.equalsIgnoreCase("next")) {
			System.out
					.println("Bandits jump out of the trees, they attack you, what will you do?");
			String battleBA = input.next();

			if (battleBA.equalsIgnoreCase("battle")) {

				if (battleBA.equalsIgnoreCase("run")) {
					System.out.println("guess 1-9, 3 of the 9 numbers will enable you to escape");
					Random BA = new Random();
					int smallnumber = BA.nextInt(10) + 1;
					int num1 = input.nextInt();
					
					if (num1 == smallnumber) {
						
					}
					
				}
			}
		}
	}
}
